package com.ft.security.service.dto;

import com.ft.core.service.dto.BaseDto;
import com.ft.core.utils.validate.NotNullAndEmpty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

/**
 * @copyright (C), 2015-2019, XXX有限公司
 * @fileName: LoginUserInput
 * @author: 李阳
 * @date: 2019/7/9 11:17
 * @description: 登录用户输入对象
 * @history: <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class LoginUserInput extends BaseDto {
    private static final long serialVersionUID = -2899119595991603639L;

    @ApiModelProperty(value = "登录用户名", required = true)
    @NotNullAndEmpty(message = "登录用户名不能为空")
    private String userName;

    @ApiModelProperty(value = "登录密码", required = true)
    @NotNullAndEmpty(message = "登录密码不能为空")
    private String password;
}
